package com.shj.em.aa.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.shj.em.aa.dto.UserSearchDTO;
import com.shj.em.aa.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Shen Huang Jian
 * @since 2018-06-25
 */
public interface UserService extends IService<User> {

    Page<User> queryUserPage(UserSearchDTO searchDTO);

    User findByUserId(String userId);

    List<User> getUsersByRoleId(Long roleId);

    List<User> getAllUsers();

    String changePwd(String userId, String password, String oldPwd);

    String resetPwd(String userId);

    void resetAllPwd();
}
